package com.example.indenture.team.service;

import com.example.indenture.common.vo.Result;
import com.example.indenture.common.vo.Search;
import com.example.indenture.team.entity.Team;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public interface TeamService {
    //
    Result<Team> insertTeam(Team team);

    //
    Result<Object> updateTeam(Team team);

    //
    Result<Object> deleteTeam(Integer tid);

    //
    PageInfo<Team> teamByRaceAndName(Integer rid, Search search);

    //
    Result<Object> addTeamUser( Integer uid, Integer tid, Integer rid);

    //
    Result<Object> quitTeam(Integer tid, Integer uid);

    //
    Result<List<Team>> teamListByUser(Integer uid);

    //
    Result<Object> isInTeam(Integer uid, Integer rid);

    Team getTeamByVercode(Integer vercode);

    Team ok(Integer vercode,Integer tid);

    Team findById(Integer id);

}
